package com.hnqcgczy.service;

import com.hnqcgczy.vo.ShopCartVo;
import com.hnqcgczy.vo.TShopcart;

import java.util.List;

public interface IShopCartService {
    //1 新增购物车
    int addShopCart(TShopcart cart);
    //2 查询用户所有购物车
    List<ShopCartVo> getShopCartList(String tuId);
    //3 删除购物车一条记录
    int deleteShopCart(int tsId);
    //4 清空购物车
    int removeShopCart(String tuId);
    public int updateShopCart(TShopcart cart);
    TShopcart getShopCartByTuIdAndTpId(String tuId,long tpId);
}
